package com.xuxin.baby.contract;

import com.xuxin.baby.bean.BaseBean;
import com.xuxin.baby.bean.UpdateOrderBean;
import com.xuxin.baby.presenter.OrderCommitPresenter;

import okhttp3.RequestBody;

/**
 * Created by xu_xin
 * Created on 2020/10/23 0023
 * 提交订单
 */
public interface OrderCommitContract {

    interface Model {

        void updateOrder(OrderCommitPresenter presenter, String tenantId, String token, String memberId, RequestBody requestBody);

        void updateOrderStatus(OrderCommitPresenter presenter, String tenantId, String token, String Id, String status, String paymentMtd,String tradeType);
    }

    interface View extends BaseContract.view {

        void onSuccess(UpdateOrderBean updateOrderBean);

        void onSuccess(BaseBean baseBean);
    }

    interface Presenter extends BaseContract.presenter {

        void updateOrder(String tenantId, String token, String memberId, RequestBody requestBody);

        void updateOrderStatus(String tenantId, String token, String Id, String status,String paymentMtd,String tradeType);

        void onSuccess(UpdateOrderBean updateOrderBean);

        void onSuccess(BaseBean baseBean);
    }
}